package com.fount4j.generator.config;

import java.util.ArrayList;

/**
 * 实体类配置
 *
 * @author Morven 2016/12/21
 */
public class EntityConfig extends PropertyHolder {
    /** 是否生成 */
    private Boolean enable = true;
    /** 实体类所属包 */
    private String packageName;
    /** 实体类文件路径 */
    private String resourcePath;
    /** 生成实体类名称时忽略表前缀，多个以“,”隔开 */
    protected String ignoreTablePrefix;
    /** 自定义的需要导入的包 */
    protected ArrayList<String> imports;

    public Boolean isEnable() {
        return enable != null && enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getResourcePath() {
        return resourcePath;
    }

    public void setResourcePath(String resourcePath) {
        this.resourcePath = resourcePath;
    }

    public String getIgnoreTablePrefix() {
        return ignoreTablePrefix;
    }

    public void setIgnoreTablePrefix(String ignoreTablePrefix) {
        this.ignoreTablePrefix = ignoreTablePrefix;
    }

    public Boolean getEnable() {
        return enable;
    }

    public ArrayList<String> getImports() {
        return imports;
    }

    public void setImports(ArrayList<String> imports) {
        this.imports = imports;
    }
}
